using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using CUtil;

namespace CapitalReSources
{
	/// <summary>
	/// Summary description for FormList.
	/// </summary>
	public class FormList : System.Windows.Forms.Form
	{
		private ListViewWithEnum listViewWithEnum;
		private System.Windows.Forms.ListView listView1;
		private System.Windows.Forms.ColumnHeader columnHeader1;
		private System.Windows.Forms.ColumnHeader columnHeader2;
		private System.Windows.Forms.ColumnHeader columnHeader3;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public FormList()
		{
			ListViewYearEnum lvyenum = new ListViewYearEnum();
			listViewWithEnum = new CUtil.ListViewWithEnum(lvyenum);

			this.listViewWithEnum.Dock = System.Windows.Forms.DockStyle.Fill;
			this.listViewWithEnum.Location = new System.Drawing.Point(0, 0);
			this.listViewWithEnum.Name = "listViewWithEnum";
			this.listViewWithEnum.Size = new System.Drawing.Size(568, 333);
			this.listViewWithEnum.TabIndex = 0;
			this.listViewWithEnum.View = System.Windows.Forms.View.Details;
			// 
			// FormList
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(568, 333);
			this.Controls.Add(this.listViewWithEnum);


			listViewWithEnum[ListViewYearEnum.Share] = "Adidas";
			listViewWithEnum.AddNewItem();


			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new string[] {
																													 "dsf",
																													 "sdf",
																													 "sdf"}, -1);
			System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem(new string[] {
																													 "",
																													 "",
																													 ""}, -1);
			System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("");
			this.listView1 = new System.Windows.Forms.ListView();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
			this.SuspendLayout();
			// 
			// listView1
			// 
			
			this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																						this.columnHeader1,
																						this.columnHeader2,
																						this.columnHeader3});
			this.listView1.AllowColumnReorder = true;
			this.listView1.AllowDrop = true;
			this.listView1.FullRowSelect = true;
			this.listView1.GridLines = true;
			this.listView1.HideSelection = false;
			this.listView1.HoverSelection = true;
			this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
																					  listViewItem1,
																					  listViewItem2,
																					  listViewItem3});
			this.listView1.Location = new System.Drawing.Point(232, 80);
			this.listView1.Name = "listView1";
			this.listView1.Size = new System.Drawing.Size(208, 176);
			this.listView1.TabIndex = 0;
			this.listView1.View = System.Windows.Forms.View.Details;
			// 
			// FormList
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(464, 325);
			this.Controls.Add(this.listView1);
			this.Name = "FormList";
			this.Text = "FormList";
			this.ResumeLayout(false);

		}
		#endregion
	}
}
